import request from '@/utils/request'

export function login(data) {
  //lzh 修改
  // return request({
  //   url: '/vue-admin-template/user/login',
  //   method: 'post',
  //   data
  // })
  return request({
    url: '/TokenAuth/Authenticate',
    method: 'post',
    data:{
      "userNameOrEmailAddress": data.username,
      "password": data.password,
      "rememberClient":true
    }
  })
}
//lzh 修改
export function getInfo() {
  return request({
    url: '/services/app/Session/GetCurrentLoginInformations',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
